package com.eduction.service.impl;

import java.sql.SQLException;
import java.util.List;

import com.eduction.modules.system.entity.CourseAnalyseMap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.eduction.modules.system.dao.InterviewAnalyseMapRepository;
import com.eduction.modules.system.entity.InterviewAnalyseMap;
import com.eduction.service.InterviewAnalyseMapService;

@Service
public class InterviewAnalyseMapServiceImpl implements InterviewAnalyseMapService {

	@Autowired
	private InterviewAnalyseMapRepository interviewAnalyseMapRepository;
	@Override
	public void saveInterviewAnalyseMap(InterviewAnalyseMap c) {
		this.interviewAnalyseMapRepository.saveInterviewAnalyseMap(c);

	}

	@Override
	public void updateInterviewAnalyseMapState(String sign,String schoolId,String expertId) throws SQLException {
		this.interviewAnalyseMapRepository.updateInterviewAnalyseMapState(sign,schoolId,expertId);
	}

	@Override
	public List<InterviewAnalyseMap> queryMapsByExpert(String expertId,String identity) throws SQLException {
		// TODO Auto-generated method stub
		return this.interviewAnalyseMapRepository.queryMapsByExpert(expertId,identity);
	}

	@Override
	public InterviewAnalyseMap queryIsExist(String sign, String schoolId, String expertId) throws SQLException{
		return this.interviewAnalyseMapRepository.queryIsExist(sign,schoolId,expertId);
	}

	@Override
	public InterviewAnalyseMap findByPid(String pid){
		return this.interviewAnalyseMapRepository.findByPid(pid);
	}

	@Override
	public void deleteInterviewAnalyseMapState(String sign, String schoolId, String expertId) throws SQLException{
		interviewAnalyseMapRepository.deleteInterviewAnalyseMapState(sign,schoolId,expertId);
	}

	@Override
	public void deleteByPid(String pid){
		interviewAnalyseMapRepository.deleteByPid(pid);
	}
	@Override
	public List<InterviewAnalyseMap>queryMapBySchoolId(String schoolId)  throws SQLException{
		return this.interviewAnalyseMapRepository.queryMapBySchoolId(schoolId);
	}
}
